package com.bdi.mqtt_broker.service;

import com.bdi.mqtt_broker.model.SessionStore;

/**
 * @author WangNing yogehaoren@gmial.com <br>
 * @since 1.0
 */
public interface ISessionStoreService {

    /**
     * 存储会话
     */
    void put(String clientId, SessionStore sessionStore);

    /**
     * 获取会话
     */
    SessionStore get(String clientId);

    /**
     * clientId的会话是否存在
     */
    boolean containsKey(String clientId);

    /**
     * 删除会话
     */
    void remove(String clientId);


}
